package gate

import (
	"znet/zgate"
	"demo/gate/conf"
	"znet/zconst/zcmd"
	"demo/gate/agents"
)

var Processor *zgate.ZProcessor = nil

func init()  {
	Processor = zgate.NewProcessor(conf.Server.Gate.LittleEndian)
	Processor.SetRouter(zcmd.CMD_ZNET_ALL, agents.ChanRPC)
}